public class Flower
{
    String color;
    private double price;
    public Flower()//默认构造方法
    {

    }
    public Flower(String color,double price)//两个参数的构造方法
    {
        this.color=color;
        this.price=price;
    }
    public void SetPrice()
    {
        this.price=price;
    }
    public double GetPrice(double price)
    {
        return this.price;
    }
    public void SetColor(String color)
    {
        this.color = color;
    }
    public String GetColor(String color)
    {
        return this.color = color;
    }
    public void ShowInfo()
    {
        System.out.println("花的颜色是"+ this.color + this.price + "元");
    }
}
